package demon1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Text {
    public static void main(String[] args) {
        Dog dog =new Dog();
        Animal animal =dog;
        animal.eat();
        dog=(Dog)animal;
        dog.bark();
    }
}
